/**
 * @description tag样式
 * @param data
 * @returns {}
 */
export const diyTagStyle = (data: any) => {
  if (data?.bgColor || data?.fontColor || (data?.borderType && data?.borderType != 'null')) {
    return {
      padding: '3px 4px',
      fontSize: '12px',
      background: data.bgColor,
      color: data.fontColor,
      border: data.borderType != 'null' ? `${data.borderWidth}px ${data.borderType} ${data.borderColor}` : '',
    }
  } else return {}
}
